﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Planer
{
    public partial class Viewplan : Form
    {
        
        public Viewplan()
        {
            
            InitializeComponent();
            Login vlogin = new Login();
            vlogin.ShowDialog();

            if (!vlogin.onlogin)
            {
                Environment.Exit(0);
            }
            if (vlogin.onlevel == "5")
            {
                Btn_Setting.Enabled = true;
                Btn_Setting.Visible = true;
            }
                
        }

        private void Btn_Setting_Click(object sender, EventArgs e)
        {
            Setting vsetting = new Setting();
            vsetting.Show();
        }
    }
}
